-- GENERATED SPELL FOR [Defias Miner] --


function spell0_598(pUnit, Event) --@Pierce Armor,n/a--
pUnit:FullCastSpellOnTarget(6016,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_598', 20000, 1)
end

function Sorts_598(pUnit, Event)
local choix_sorts_598 = math.random(0, 0)
if choix_sorts_598 == 0 then
pUnit:RegisterEvent('spell0_598', 1, 1)
end
end

function mob598_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_598', math.random(1500, 3000), 1)
end

function mob598_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob598_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob598_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(598, 1, 'mob598_Action')
RegisterUnitEvent(598, 2, 'mob598_Leave')
RegisterUnitEvent(598, 3, 'mob598_Kill')
RegisterUnitEvent(598, 4, 'mob598_Die')
